
AM_FCFLAGS = -I$(top_srcdir)/lib -I$(top_srcdir)/minpack

libexec_PROGRAMS = astrometry wcswrite

astrometry_SOURCES = projections.f95 atrafo.f95 match.f95 astromatch.f95 \
                   lsfit.f95 absfit.f95 robfit.f95 astrofit.f95 astrofits.f95 \
                   astrometry.f95
astrometry_LDFLAGS = @LIBGFORTRAN@ @LIBGCC@ \
                   -L$(top_srcdir)/minpack -L$(top_srcdir)/lib
astrometry_LDADD = -lminpack -llmin -lsort -lstat -lrstat -lcfitsio -lm

wcswrite_SOURCES = astrofits.f95 wcswrite.f95
wcswrite_LDFLAGS = @LIBGFORTRAN@ @LIBGCC@
wcswrite_LDADD = -lcfitsio -lm

